<<template>
	<view class="page">
		<view class="items" v-for="(items,index) in shiList" :key="items.id" @click="goQu(items)">
			{{items.name}}
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				shiquzheng:[],
				shiList:[],
				
			}
		},
		onLoad(options) {
			this.getShiList(options.provinceId)
			this.shiquzheng[3] = {provinceId:options.provinceId}
		},
		methods: {
			// 查询所在市区
			getShiList() {
				this.$axios.request(this.$api.ShiListApi, "GET" , {
					pid:0,
					hasTowner:1
				}).then((val) => {
					this.shiList = val.data
					console.log(this.shiList,'this.shiList')
				})
			},
			// 跳往所在市区
			goQu(items) {
		uni.navigateTo({
			url:`/pages/mine/suoZaiShi?provinceId=${items.id}`
		})
			}
		},

	}
</script>

<style>
.page {
	width: 100%;
	height: 100vh;
	background-color: #fff;
	overflow-y: auto;
	padding-bottom: 60rpx;
}
.items {
	width: 100%;
	padding:0 24rpx;
	height: 60rpx;
	/* background-color: red; */
	border-bottom: 2rpx solid #eee;
	line-height: 60rpx;
}

</style>
